/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.view;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

/**
 *
 * @author TOSHIBA
 */
public class PanelTerimaSuratDokumen extends JLabel {
    private JLabel labelPanel, labelNomor, labelPerihal, labelAsal, labelPenerima,
            labelLetak, labelNama, labelTanggal;
    private JTextField textNomor, textPerihal, textAsal, textPenerima,
            textLetak, textNama, textTanggal;
    private JRadioButton radioSurat, radioDokumen;
    private JButton tombolSimpan, tombolBatal;

    public PanelTerimaSuratDokumen(){
        setLayout(null);

        labelPanel= new JLabel("Form Penerima Surat Dokumen");
        labelPanel.setBounds(150, 10, 200, 20);
        add(labelPanel);

        labelNomor= new JLabel("Nomor");
        labelNomor.setBounds(20, 80, 100, 20);
        add(labelNomor);

        textNomor= new JTextField(20);
        textNomor.setBounds(80, 80, 100, 20);
        add(textNomor);

        labelPerihal = new JLabel("Perihal");
        labelPerihal.setBounds(20, 110, 100, 20);
        add(labelPerihal);

        textPerihal= new JTextField(20);
        textPerihal.setBounds(80, 110, 100, 20);
        add(textPerihal);

        labelAsal = new JLabel("Asal");
        labelAsal.setBounds(20, 140, 100, 20);
        add(labelAsal);

        textAsal= new JTextField(20);
        textAsal.setBounds(80, 140, 100, 20);
        add(textAsal);

        labelPenerima= new JLabel("Penerima");
        labelPenerima.setBounds(20, 170, 100, 20);
        add(labelPenerima);

        textPenerima= new JTextField(20);
        textPenerima.setBounds(80, 170, 100, 20);
        add(textPenerima);

        labelLetak= new JLabel("Letak");
        labelLetak.setBounds(20, 200, 100, 20);
        add(labelLetak);

        textLetak= new JTextField(20);
        textLetak.setBounds(80, 200, 100, 20);
        add(textLetak);

        labelNama= new JLabel("Nama Petugas Penerima");
        labelNama.setBounds(20, 230, 150, 20);
        add(labelNama);

        textNama= new JTextField(20);
        textNama.setBounds(170, 230, 150, 20);
        add(textNama);

        labelTanggal= new JLabel("Tanggal Terima");
        labelTanggal.setBounds(20, 260, 150, 20);
        add(labelTanggal);

        textTanggal= new JTextField(20);
        textTanggal.setBounds(170, 260, 150, 20);
        add(textTanggal);

        ButtonGroup group = new ButtonGroup();

        radioSurat = new JRadioButton("Buku");
        radioSurat.setBounds(130, 30, 60, 40);
        add(radioSurat);
        group.add(radioSurat);

        radioDokumen = new JRadioButton("Majalah");
        radioDokumen.setBounds(200, 30, 170, 40);
        add(radioDokumen);
        group.add(radioDokumen);

        tombolSimpan= new JButton("Simpan");
        tombolSimpan.setBounds(100, 300, 100, 30);
        add(tombolSimpan);

        tombolBatal= new JButton("Batal");
        tombolBatal.setBounds(240, 300, 100, 30);
        add(tombolBatal);

        this.setSize(800, 400);
        this.setVisible(true);
    }
}
